Added status codes 401 for login failure