updated credentials class with better name for required roles property