only add dev is username attribute not empty