updated flaskform without extraneous code