update recovery function on login page