Redirects correctly after login.
user authentication working with page reloads etc.