Modified the javascript function to validate the day field when year selected is equal to current year and month selected is equal to current month