Attempts to log in a user using the provided loginDto.
A UserDto representing the logged-in user.
The LoginDto containing login information.