Added a few cases for login error messages
Added content-type header for auth request