adds check against an invalid un/pw