role of the user is now stored in session

code is shortened
dat missing parenthesis