Password storing program using Java