improved main() a bit so it asks for a password