Implemented input boundary checks for the population endpoints.