Adding helper to check if logged in.