fixed login with proper session-user id. & more random errors