fix: redirect to log in if upload failes because session timed out
added logout, clean up
proper session cookie