correcting my validations errors