added factory girl post
added validations to post model and wrote passing invalid attributes feature test
added unit tests for posts and added valid attribute gem