Wanted to modify the authentication function from my application controller