added loadingpopup for input validation