Added ability to edit post, some validations on new page