Add validation and relationships for posts and users.