calling getstoragestats.php only if a user is logged in because this call requires a user to be logged in