form validation incapsulation int values