Form validation

Performs validatoin of the form fields "onblur" and also on submit