Why are the necessary options not working in my form?