Added headers and config arguments to the success, error and validation callbacks