clean code for form. added route for server.py