Solution Directory Input Check code added