getUserByLogin: replace nulls by optionals.

It might prevent a bunch of NullPointerExceptions.

More to come on other `UserService` and `AuthenticationService` methods.