Adding validations for rowLength and mineCount