have homepage redirecting when a user is logged in