generate lowercase login and update DNI strip function