checkIfNewUser defined removed