Adding generic error when login fails. Jasmine tests to handle ajax success and error conditions