Added validation (via Jquery Validate plugin). Also various adjustments.