update badrequest for form and jquery