added login form and cookiesetting