fixed an error checking the valid form