testing and implementing login failure