Flask functions added to set the form scores

minor error correction aswell