modal opening closing validating :)