only setting username if present