Add isLogged control in registration