add validate js