changed server POST route names to match front end variable names