added check for year

Change-Id: I5067b2f5bef0330804fcb46e6361825ba92c51ae