fix time_record index bug when no monthly_id param
fix uniqueness of monthly.month
add time_validator to time_record