added alerts, and fix pw reset page