added user model and session methods