add printout and alert regarding error message if input is left blank