Fixing confirm password and Making registerFragment freeze until clicking on OK in the dialog for successful registration