Fix login on localhost
Change cookie by localStorage
Minors fix :+1: