Updated login to use username instead of email