Updating is_logged_in check for distributed server to actually work :)