Add checking of valid range of date on creating/editing course