Fixed the routes to allow get and post submits.