Fixed database error on Validation page