validation added to the form