fixed login status on mainpage added delete cookie function to CookieService