Login check and login in site config works, except for the very first time (Webkit ignores the location.reload()... ^%$#@%^%!!)