Changed the name of the authenticate function

I will name the functions properly from now on