Added form validation and codeigniter form elements instead of standard html form tags.