Fixed login issue and added alerts.