removed isloggedin test