Add timeout for credentials check