Add validation at server-side