update credentials file