validate email code changes