Fixed Notice Error on Validation.