more validation

More validation for integer type and parsing the data into the fields to
match the database