Fixed error in userEnroll function