Fixed the login function so it takes a user to the main page and display...

...s their name instead of Log In or Sign Up