fixed a problem with extra fields and better validation errors