minor changes, valid_month doesn't work in web :-(