Fix #1660

Don't re-register perms if a login event is cancelled.
Tested on live server, no-issues.