502 when viewing user's settings page while not logged in. Now redirects to login correctly.