Null check to fix NPE when user validation fails due to missing email