redirect from login and register when user is logged in