added new function to check if your want to save child , to validate user enterd data