fix problem with saving customers with zero group_id
do not allow changing customer's email to already registered email