Added client side validation for int, server already validates.