add validation and pass the rspec