Better login check
Allows user to login with username instead of email
Print some info on failed login with debug build