Client side form validation
Code Clean-up.