working on login cookie