added validation and welcome message