validation added for empty line