catching error on login