adding validation with rspec (spec subdir)