The user dto for the auth api composed by the userId and password.
Extension function to convert a UserDto into a User.