validations test for post