fix some issues with the credentials dialog and improve on the credentials part of the settings