wrote reset settings password API