Provides a way to validate an anti-forgery token when posting data via ajax