Fixed bug in user model when instanciating without session