POST request fix for getting the form data