Added initial edit post framework
Finalized edit changes with error handling