adds validation of uniqueness to post