added validaton on check