Style grid, add input validation