switched login json object from username to email