added login error checking