added basic null validation on the form