all fields functional. also added submit and reset button