how to get text from password field in java