added error property for ajax call