Added minimum width and height validation.
Minimum width and height validation.