updated reset pwd functionality