WIP #882 Add more hooks v2

Add hooks to the login data-handler.
WIP #882 Add more hooks v2

Fix hooks in the login data-handler..