I play guitar because it lets me dream out loud.
The mind must be trained to follow the flow of the heart's river.
Being sure of yourself is the best advice I can think of. Having fun and not going too fast are important, but being self-assured will keep you composing for the longest period of time. The minute I lose my sense of self-worth is the same minute I turn on a movie, take a break, eat, etc.