Fixed getting form data from request object, closes #724.