Add event on afterLogin