Add log_actions controller and login functionality