Fixed indentations.
Now we always check that session is not expired