added userid as hidden variable