successfully registered and login