Added authenticate button, function