Updated authentication function