adding is_logged api