New working flow for registering and login using cookies now instead of sessionStorage. login view added and timeout for game refresh