validates length of posts and establishes associations with user model