fixed up login.html to use $cookies