add validations for post and fix tests