Added a convenience method to check if user is logged in