Added checks to ensure user enter name and at least one location