Error check width and height boxes