Add cookie creation after login
Add correct encoding ti auth digest hash