Added Model relationships; Added LogInViewController logic and login call for department key;  Added logic for handling error cases;  Added KeyChain workings for department key;