Add username and password fields in settings dialog, set credentials