Fix validation return error in model