added returning user cookie functionality