If people ever doubt you, instead of paying any attention to their words and getting demotivated, you should rather go so far that you are not able to hear them anymore.
It is essential to understand that people will say a lot of things, but it is entirely up to how you would perceive those things. It is also important to know that when people doubt your efficiency and potential, you should work even harder and be strongly determined to prove them wrong.