changed session create and user model