JS prevents submissions lacking required fields.