v0.0.2 - change api, add isLoggedIn function and middleware