properly store username in device parameters