adding login error checking