[cfid-349] Correct auth failure status in login server

Also added more logging for remote auth failure.
500 codes are now logged with a message and unexpected
response codes are logged as an error.

Change-Id: I176be99281b47f6f1e3da0d474cf856fa092b8eb