Added tenant ID to auth_pw function.