Completed the elements of the form. Added client side validation