refactor: processing of username/password option