refacoring login to use Alerting Factory - updated tests
Merge pull request #152 from jembi/login-refactor

refactoring login to use Alerting Factory - updated tests - closes #127