Form data functionality added