Simple input validation to group operation