welcom message cookie logic fix