Change to authenticate controller and unit test