updated sessions authenticated and fixed issue in user factory