validation is done