fix #1. Made checking of unique value 'slug' for new page