For registration or login, on success the user object is returned.