Fix: save id in session when login