Controller for login and basic security