Sprint 5 - commit 4

Fixing and refactoring validation code.
Fixing bug with the QR code sheet not being updated when there is two
questions added at the same time.