added post validations, updated edit and new post UI