change authentication controller conditional