Login credentials are now tested before dismissing the settings view and saving them to the Keychain