check error for role creation