fixed weird issue with isLoggedIn not really being a boolean.... kinda...?