started working on the validation code