fixed a bug where login failure was ignored leading to a less than helpful error message when attempting to upload a package