add null checks for langs and days in formMap