helper file for role based authentication.