added ability for users to login via username or email