committed changes to submission and answer checking validation

extensive checkin to implement submission and answer checking validation