update post styles and created validation method