added first validation