making validation work with jade