make login and logout controller.