Not displaying an error message if credentials is not set