added current user helper and some more session logic to layout