Add validation and verification to guard against malicious clients--closes #7