Validate user and email fields

From #3192.