Handle '/submit' requests