redirect an already logged in user from homepage to profile page