fixed navbar dropdown issue, fixed user role not set in the session