Added validations in 'generators_select_by_popular' method.