Added new source code to link with admin

Did some changes to save the data in database while submittimg the
form(Found error)