A few validations to edit/new

Validations are added to pop up errors when editing and creating a post