Add functionality for login through username or email.