redirect to specified url if the user is already signed in but tries accessing the login page