Passing only the user id to passport and fixed error in query.