css changes to grid, added regex for vaildation