Adding form validation system and got it working.