auto-redirect logged in user from register page to profile page