form handler: getting form data from request