Updated core to 2.4.1
Changed the way to log in using e-mail

Added a getUsername method in user model to check if the user exists in
database searching by email. Throws an exception if the user is not
found