Changed some drop down menus from name to id so value can be picked up by controller
added validateDetails method
Added invalid_input class
Fixed form action, changed some ids to names to fix posting bug, removed trailingZero code and added section tag for error messages
Added code to check if entered date is in the future
Added skeleton for switch statement validating event date
Added code to check if year is a leap year
Fixed code to check if entered date is in the future
Fixed call to isLeapYear() method and changed error message
Added scenario for 30 day months and comment for 31 day months
Changed some id attributes to name and changed name of input
Changed name of dynamic input
Added error message for invalid text length
Added validation for text length in distance field
Added length validation for hours field
Added validation for event name and event loaation fields
Added error message for text inputs
Added isInputValid() to check input against regex and added validation for distance field
Added input validation for hours field
Amended if-statement