added cookie on user registration