added routes for get and post with passed values from form