Cleaned up Code for AdminViewController and LoginViewController