redirect user from visiting homepage if logged in