Revert "avoid double-spaces in where-statement"

This reverts commit ef7621c66e24aa22404fc7bd1fe22aec1ba4f300.
finished basic session- and login-management