validation and adding syphon for editing.