form as a directive