writting validations