Since you're still begining you must learn "Alternate Picking" first. A very famous bad old habbits for beginning guitarists is Downstrokes.
Alternate Picking, from it's name means that you don't use the same picking direction all the time, you should pick every thing up-down-up-down ,etc.
But that's just for the beginning, you'll see more difficult picking patterns in the future. For now search for Alternate Picking exercise on this site or others, and remember to play everything very slowly till you memorize the notes quite well then raise your speed gradualy.