updated task controller
added is_valid_date? controller function to verify date format