making user data cookie get picked up correctly. major code smell.