enhancement: last login and logout flag for users

now the last login date and time of a user is saved to the database.
also, there is a flag, that indicates, wheter a user has logged out or
not. if not, the user will get a warning message at the next login.