Fixed postLogin and postLogout hook, they are also triggered in the backend!