Fixed issue #1 - Task priority now saves correctly even after form is submitted with errors.