made slight changes on the validation