user can edit a post and error message displayed if not authorised or invalid data