Added ability to stay logged in (cookies)