validation on ajax request-show error in dialog, setdefaults correction and moved the function to BAO/RecurringEntity