Now possible to login using the username instead of the email address
Added tests