converted in to mysql database. added validation when submitting a form.