Session logic in authuser and logout added