i wrote this code to set password in dialog but when i click on button to save the password, it dose not check Text Input Edit Text and dialog will be close. what should i d