adding alerts to login view