edit functionality done and validation applied on all forms