Added Code validation