do not use havascript use php controller on successful update of password