}
# Check if the userid is unique
# Check if the userid is unique. userid is not passed if we are modifying the messaging preferences or borrower attributes.
unless (Check_Userid($newdata{'userid'},$borrowernumber)) {
if (($op ne 'modify' && $op ne 'save') && not(Check_Userid($newdata{'userid'},$borrowernumber))) {
push @errors, "ERROR_login_exist";
-