Make username optional

See #402