Added possibility to set a callback on login successful
issue #118