Hi Sheba,
Your professor was out of line speaking to you that way. Only you knows how hard you've worked throughout the year. You've definitely proven yourself with the papers you've had published. Try not to let this get to you too much even though it may seem difficult. Fight these thoughts, and remind yourself that you have indeed worked tremendously hard and no one is perfect. If you're having doubts, review some of your work.. it will make you feel great and remind you of your successes.
Hold your head up,
Sylvie, Bilingual Health Educator