add validate to controller
add ejs and client libraries