Completing authentication function...