added questions and added security for user input