Modified login field to accept either username or email