fixed call to checkUser function