checking if limit exist before enforcing on time picker and added max check