modularized the validateField function for better readability.  added validation to protect against entering a date in the future.
modularized the validateField function for better readability.  added validation to protect against entering a date in the future. when invalid date entered, the input field gets another class (alert_invalid) to highlight the box as invalid.
added class (alert_invalid) to be applied to an input field that has failed validation code to alert user.