for some reason request.form.__contains__ does not work, use request.args.get() instead