test validation in getUserIdFromLoginId