Made sure to properly report the reason for a failed login (if server
provided a reason).
Tests fixed
Merge pull request #74 from thongsav-usgs/PUBSTWO-1023

Pubstwo 1023