add validation styles and js code