added user model, sessions, helper methods