added more details
added blank input line validation