Better detecting when a user is already signed in
Better login and logout urls