Redirect to user page if signed in user goes to home page, and redirect to homepage if logged out user tries to go to show page