Added Registration and fixed Cookie