Finished add and modfiy

Added validation and completed both add and modify's functionality