added input restrictions

error messages are shown when inputs are blank
number fields have min and max restrictions