Modified the function of prompt box when change password successfully