add validations to model

ignore rspec files