adding a messgage if login fails, if succeds redirecting to another page
changing from ng-app to data-ng-app and from ui-view to data-ui-view
on successful login, redirecting to dogs.all state