Java program for keeping passwords