added live validation