added lang detection in function adduser