Check if 'auth' cookie is set in isLoggedIn() function.

Signed-off-by: Thiago Farina <tfarina@chromium.org>