Only failing validation when the fields are missing and the 'required' function is explicitly being set