fixed some bugs with login

as the title suggests, there were some bugs that I fixed such as the location the strings were grabbed and stored  and the layout