Add validation of new post on the server side