create post path with error alerts