add js validation and server side for page modules