check if form has id