Add missing $apply for success case of loginClick directive.

This bug was preventing my resource wrapping pull request from working correctly. Key change is the $apply in the "isLoggedIn" case.