Fix validate regex in server.