Performs a user registration operation.
The resulting UserDto after a successful registration.
The LoginDto containing registration credentials.