Fixed cookie check for automatic login.