Adding Rubocop and ensuring validation