Refactored login code to return auth key.

Resource tests that duplicated model tests re login input have been removed.
We now just see if we get the correct results when the model returns a user input error status.