add validate to post