Added login failure logging