adding client side validation

via jquery validation plugin, adding required classes to fields