added custom error package
added errorhandling
extended permissions
updated posts collection