I stay motivated by always remembering where I want to be in the future, the life I want for myself and how independent I want to be, yes I fail but I always pick myself up and do it again until I get it. I've always had this mindset since I was young and it has really worked for me.
Ps. DON'T NOT LET ANYONE TELL YOU, YOU CAN'T DO IT. BECAUSE YOU CAN!