added user posts resource and some error templates