Added support for restricting the acceptable request method

Added support for restricting the acceptable request method for the form submit.