save only if quiz is valid