Validations and testing for posts added