UPDATED more unit testing for login.