corrected text and added validation