redirecting to main user page when logged in