Adding some security checks to admin ajax calls.