Generate access controller for login and logout
Implement login and logout features.