[client][users][servers] Declare local variables at top of the function