after change the controller from login to authenticate