Added login failure to tests; fixed logn failure