userID undefined -> null error