Allow to easily customize the redirect after login logic. Closes gh-23