Add basic form validation

Now required fields are checked before sending the form