[PATCH 1/2] Check if realm mapping is selected