Filtering function added -> now users can filter users with specific conditions