Fixed some misc issues

- fixed issue with the login error flow.
- moved the getUserActivity helper function into the UserService
- removed reference to the dangle library