added error label to settings dialog if authentication is not successful,
also handle NetworkAccessManager states correctly when invalid credentials
are provided