login redirects to previous page. visiting login as user will redirect to lobby