check_credential for allocate method