check if the credentials are filled