loggingIn session flag

Here is a simple change that adds a `loggingIn` flag to the session object.

This allows to display a message when the authentication requests takes some time (I'm using a remote LDAP that is sometimes slow).

This way, the template can display a message when `session.loggingIn` is true.