refactoring login to use Alerting Factory - updated tests

This PR relates to issue: https://github.com/jembi/openhim-console/issues/127