added username check to userquiz queries