fixing syntax bug on form_data method