Date validation in module, calendar controller uses current date if parameters are invalid