Redirect to profile when sign in and go to home when sign out. Access the profile only when signed in