Fixed login.

Added so that the storing of login works. So when you have logged in it
is stored between uses (and application closes etc). Also the navigation
menu changes depending on your User.Category.
Merge