Second try to commit authentication function