fixes boxfile invalid email when trying to log in