Pass the userID to the checkPassword function, as the currentUserId is not set yet when not logged in.