Error on invalid login, detect and respond to both methods for logging into TEAMS