role validation function support