updates: added prompt validation