added session and user model