AD: login uniqueness check added.