Add validation on server side