Added form handler for put/post requests